package Proxy.Static;

public class CLocalPic implements IShowPic,Runnable{

    private IShowPic pic;
    private String picName;


    @Override
    public void showPic(String picName) {
        pic = new CRemotePic();
        this.picName = picName;
        System.out.println("准备载入图片" + picName);
        Thread th = new Thread(this);
        th.start();
    }

    @Override
    public void run() {
        pic.showPic(picName);
        System.out.println(picName + "图片加载完成");
    }
}
